package com.kl.drs.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kl.drs.bean.bo.DrsAsynchTaskBO;
import com.kl.drs.dao.DrsAsynchTaskDAO;
import com.kl.drs.service.DrsAsynchTaskService;



@Service("drsAsynchTaskService")
public class DrsAsynchTaskServiceImpl implements DrsAsynchTaskService{
	@Autowired 
	private DrsAsynchTaskDAO drsAsynchTaskDAO;
	/**
	 * 新增异步任务
	 */
	@Override
	public int addAsynchTask(DrsAsynchTaskBO drsAsynchTask) {
		return drsAsynchTaskDAO.addDrsAsynchTask(drsAsynchTask);
	}
	/**
	 * 获取任务列表
	 */
	@Override
	public List<DrsAsynchTaskBO> getAsynchTaskList(Map<String, Object> condMap) {
		return drsAsynchTaskDAO.getAsynchTaskList(condMap);
	}
	/**
	 * 更改状态和时间
	 */
	@Override
	public int updateTaskStatus(Map<String, Object> condMap) {
		return drsAsynchTaskDAO.updateTaskStatus(condMap);
	}
}
